package com.cqwu.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CmSurvey entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "cm_survey", catalog = "common")
public class CmSurvey implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer creator;
	private String title;
	private String preface;
	private Integer startTime;
	private Integer endTime;
	private Integer createTime;
	private boolean isShow;

	// Constructors

	/** default constructor */
	public CmSurvey() {
	}

	/** minimal constructor */
	public CmSurvey(Integer creator) {
		this.creator = creator;
	}

	/** full constructor */
	public CmSurvey(Integer creator, String title, String preface,
			Integer startTime, Integer endTime, Integer createTime,
			boolean isShow) {
		this.creator = creator;
		this.title = title;
		this.preface = preface;
		this.startTime = startTime;
		this.endTime = endTime;
		this.createTime = createTime;
		this.isShow = isShow;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "creator", nullable = false)
	public Integer getCreator() {
		return this.creator;
	}

	public void setCreator(Integer creator) {
		this.creator = creator;
	}

	@Column(name = "title", length = 100)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "preface", length = 65535)
	public String getPreface() {
		return this.preface;
	}

	public void setPreface(String preface) {
		this.preface = preface;
	}

	@Column(name = "startTime")
	public Integer getStartTime() {
		return this.startTime;
	}

	public void setStartTime(Integer startTime) {
		this.startTime = startTime;
	}

	@Column(name = "endTime")
	public Integer getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Integer endTime) {
		this.endTime = endTime;
	}

	@Column(name = "createTime")
	public Integer getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Integer createTime) {
		this.createTime = createTime;
	}

	@Column(name = "isShow")
	public boolean getIsShow() {
		return this.isShow;
	}

	public void setIsShow(boolean isShow) {
		this.isShow = isShow;
	}

}